package com.itheima.service;

import com.itheima.dto.PhoneCodeDto;
import com.itheima.vo.LoginVo;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author YangJiaHao
 */
@Transactional(rollbackFor = RuntimeException.class)
public interface UserService {


    Boolean sendMsg(String phone);

    LoginVo login(PhoneCodeDto phoneCodeDto);

    void clearToken(String token);
}
